<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>bulk_list.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <logic:present name="bulk">
    <div>
    您已经加入团购，送货时间为 ${bulk.sendTime },人数：${bulk.memberCount}，请选择商品并下单，正式下单前，还可以更改团，加入到其他团即可。
    </div>
  </logic:present>
  <table width="100%">
     <tr align="center"><th width="20%">团购时间</th><th width="20%">人数</th><th width="20%">最大人数</th><th width="20%">剩余名额</th><th width="20%">操作</th></tr>
    <logic:iterate id="bulk" name="bulk_list">
     <tr align="center"><td>${bulk.sendTime }</td><td>${bulk.memberCount }</td><td>${bulk.maxMember }</td><td>${bulk.maxMember-bulk.memberCount }</td><td>
     <logic:equal name="bulk" property="state" value="0">
     <html:link page="/addToGroup.do?bid=${bulk.id}">加入</html:link>
     </logic:equal>
     <logic:equal value="1" name="bulk" property="state">
     过期
     </logic:equal>
     </td></tr>
  </logic:iterate>
  </table>
  
  
</html:html>
